package com.itheima.mapper;

import com.itheima.pojo.Emp;
import com.itheima.pojo.EmpExpr;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface EmpExprMapper {

    void insert(EmpExpr e);

    @Delete("delete from emp_expr where emp_id=#{id}")
    void deleteByEmpId(Integer id);

    List<EmpExpr> findByEmpId(Integer id);

}
